﻿<%@ Page Language="VB" MasterPageFile="~/Interfaz/MasterPage.master" AutoEventWireup="false" CodeFile="frmBodegaEntradaMateriales.aspx.vb" Inherits="Interfaz_frmBodegaEntradaMateriales" title="Untitled Page" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table style="width: 100%; background-color: #ccffff">
        <tr>
            <td style="border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid;
                width: 400px; border-bottom: blue thin solid; height: 20px">
                <table style="width: 100%; border-bottom: mediumblue thin double; background-color: white">
                    <tr>
                        <td style="width: 288px; text-align: left">
                            <strong>MATERIAL ENTRANTE</strong></td>
                    </tr>
                </table>
                <table style="width: 100%">
                    <tr>
                        <td style="width: 158px; height: 21px; text-align: right">
                            Fecha :</td>
                        <td style="width: 200px; height: 21px; text-align: left">
                            <BDP:BasicDatePicker ID="DateFecha" runat="server" DateFormat="dd-MMM-yyyy">
                            </BDP:BasicDatePicker>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table style="width: 100%; background-color: #ccffff">
        <tr>
            <td style="border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid;
                width: 400px; border-bottom: blue thin solid; height: 21px">
                <table style="width: 100%; border-bottom: mediumblue thin double; background-color: white">
                    <tr>
                        <td style="width: 183px; text-align: left">
                            <strong>SECCION ITEM&nbsp;</strong></td>
                        <td>
                        </td>
                        <td style="width: 246px">
                        </td>
                    </tr>
                </table>
                <table style="width: 100%">
                    <tr>
                        <td style="width: 118px; text-align: right">
                            Seleccionar :
                        </td>
                        <td style="width: 202px; text-align: left">
                            <asp:DropDownList ID="DropEscojer" runat="server" Width="192px">
                            </asp:DropDownList></td>
                        <td style="width: 17px">
                        <asp:Button ID="BttnEscojer" runat="server" Text="Escojer" /></td>
                    </tr>
                </table>
                &nbsp;
                <asp:Panel ID="PanelManual" runat="server">
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 150px; height: 21px">
                                <strong>Buscar Material:</strong></td>
                            <td style="width: 165px; height: 21px">
                            </td>
                            <td style="width: 17px; height: 21px">
                            </td>
                            <td style="width: 70px; height: 21px">
                            </td>
                            <td style="height: 21px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 150px; text-align: right">
                                <asp:CheckBox ID="CheckCodigo" runat="server" Text="Codigo" /></td>
                            <td style="width: 165px; text-align: left">
                                <asp:DropDownList ID="DropCodigoMateriales" runat="server" Width="160px">
                                </asp:DropDownList></td>
                            <td style="width: 17px">
                            </td>
                            <td style="width: 70px">
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 150px; height: 23px; text-align: right">
                                <asp:CheckBox ID="CheckFamilia" runat="server" Text="Familia" /></td>
                            <td style="width: 165px; height: 23px; text-align: left">
                                <asp:DropDownList ID="DropFamilias" runat="server" Width="160px">
                                </asp:DropDownList></td>
                            <td style="width: 17px; height: 23px">
                                <asp:Button ID="BtnBuscar" runat="server" Text="Buscar" /></td>
                            <td style="width: 70px; height: 23px; text-align: right">
                                <strong>Material:</strong></td>
                            <td style="height: 23px; text-align: left">
                                <asp:DropDownList ID="DropMaterial" runat="server" Width="200px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="width: 150px; height: 23px; text-align: right">
                                Fila
                            :</td>
                            <td style="width: 165px; height: 23px; text-align: left">
                                <asp:DropDownList ID="DropFila" runat="server" Width="160px">
                                </asp:DropDownList></td>
                            <td style="width: 17px; height: 23px">
                            </td>
                            <td style="width: 70px; height: 23px; text-align: right">
                                Columna:
                            </td>
                            <td style="height: 23px; text-align: left">
                                <asp:DropDownList ID="DropColumna" runat="server" Width="200px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="width: 150px; height: 23px; text-align: right">
                                Cantidad:</td>
                            <td style="width: 165px; height: 23px; text-align: left">
                                <asp:TextBox ID="TxtCantidad" runat="server" Width="152px"></asp:TextBox></td>
                            <td style="width: 17px; height: 23px">
                            </td>
                            <td style="width: 70px; height: 23px; text-align: right">
                                Detalle:</td>
                            <td style="height: 23px; text-align: left">
                                <asp:TextBox ID="TxtDetalle" runat="server" Width="192px"></asp:TextBox></td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="PanelAutomatico" runat="server">
                    <br />
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 287px; height: 21px; text-align: right">
                                N° Orden de Compra:</td>
                            <td style="width: 230px; height: 21px; text-align: left">
                                <asp:DropDownList ID="DropOC" runat="server" Width="208px">
                                </asp:DropDownList></td>
                            <td style="width: 25px; height: 21px">
                                <asp:Button ID="BtnOC" runat="server" Text="Cargar" /></td>
                        </tr>
                    </table>
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 130px; height: 21px; text-align: right">
                                Fecha de Pedido:</td>
                            <td style="width: 161px; height: 21px; text-align: left">
                                <asp:TextBox ID="TxTFechaPedido" runat="server" Width="192px"></asp:TextBox></td>
                            <td style="width: 16px; height: 21px">
                                Proveedor:</td>
                            <td style="width: 156px; height: 21px">
                                <asp:TextBox ID="TxTProveedor" runat="server" Width="192px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 130px; height: 21px; text-align: right">
                                Condicion de Pago:</td>
                            <td style="width: 161px; height: 21px; text-align: left">
                                <asp:TextBox ID="TxTCondPago" runat="server" Width="192px"></asp:TextBox></td>
                            <td style="width: 16px; height: 21px">
                                Comprador:</td>
                            <td style="width: 156px; height: 21px">
                                <asp:TextBox ID="TxTComprador" runat="server" Width="192px"></asp:TextBox></td>
                        </tr>
                    </table>
                    <asp:GridView ID="GridBodega" runat="server" AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
                        AutoGenerateEditButton="True" CellPadding="4" ForeColor="#333333" GridLines="None"
                        OnRowCancelingEdit="GridBodega_RowCancelingEdit" OnRowDeleting="GridBodega_RowDeleting"
                        OnRowEditing="GridBodega_RowEditing" OnRowUpdating="GridBodega_RowUpdating"
                        Width="760px">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="ITEM" HeaderText="Item">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UNIDAD" HeaderText="Unidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DETALLE" HeaderText="Detalle">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CANTIDAD" HeaderText="Cantidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PRECIOUNITARIO" HeaderText="Precio Unitario">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CODMATERIAL" HeaderText="Codigo Material" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="itemSelector" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="FILA" HeaderText="Fila" />
                            <asp:BoundField DataField="COLUMNA" HeaderText="Columna" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
    </table>
                <table style="border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid;
                    width: 100%; border-bottom: blue thin solid; position: static">
                    <tr>
                        <td style="text-align: center">
                            <asp:Button ID="Button1" runat="server" Text="Ingresar" /></td>
                        <td style="text-align: center">
                            <asp:Button ID="Button3" runat="server" Text="Limpiar" /></td>
                    </tr>
                </table>
</asp:Content>

